package cn.sofwin.day0126.homework.Car;

public final class Bus extends MotoVehicle{
    // 客车座位数
    private int SeatCount;

    public Bus(String no, int seatCount) {
        super(no);
        SeatCount = seatCount;
        super.setType("客车");
    }

    @Override
    public double CalcRent(int days) {
        if (SeatCount <= 16){
            return days * 800;
        }
        return days * 1500;
    }
}
